package com.atguigu.gmall.service;

import com.atguigu.gmall.list.model.SearchParam;
import com.atguigu.gmall.list.model.SearchResponseVo;

public interface SearchService {

    /**
     * 处理上架请求(商品文件录入索引库)
     * @param skuId
     * @return
     */
    void upperGoods(Long skuId);

    /**
     * 处理下架请求(商品文件在索引库删除)
     * @param skuId
     * @return
     */
    void lowerGoods(Long skuId);

    /**
     * 跟新商品热度分值
     * @param skuId
     */
    void incrHotScore(Long skuId);

    /**
     * 商品检索
     * @param searchParam
     * @return
     */
    SearchResponseVo search(SearchParam searchParam);
}
